﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Footer
{
    public class FooterFilterAttribute : ActionFilterAttribute
    {
        public String Footer { get; set; }

        public override void OnActionExecuted(
            ActionExecutedContext filterContext)
        {
            ViewResult result = filterContext.Result as ViewResult;
            if (result != null)
                result.ViewData["Footer"] = Footer;
        }
    }
}
